// 给body设置一个背景颜色
@import './base.less';
body {
  background-color: #fafafa;
  // 头部区域
  header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    height: 11.7333vw;
    background-color: rgb(194, 20, 1);
    color: #fff;
    h1 {
      font-size: 4.2667vw;
    }
  }
  // 主题区域
  .main {
    width: 100%;
    padding-top: 11.7333vw;
    padding-bottom: 13.3333vw;
    // 搜索框
    .search {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 15.2vw;
      padding-left: 2.9333vw;
      padding-right: 2.9333vw;
      .input {
        width: 100%;
        height: 8.8vw;
        background-color: #fff;
        text-align: center;
        line-height: 8.8vw;
        color: #999;
        font-size: 3.2vw;
        span {
          font-size: 4.8vw;
          vertical-align: middle;
        }
      }
    }
    // 轮播图
    .banner {
      height: 53.3333vw;
      background-color: black;
    }
    // 新闻区
    .news {
      display: flex;
      align-items: center;
      height: 10.6667vw;
      background-color: rgba(255, 0, 0, 0.1);
      padding: 1.8667vw 4.5333vw;
      color: red;
      div {
        margin-left: 2.6667vw;
        flex: 1;
        display: flex;
        overflow: hidden;
        span {
          animation: run 5s linear infinite;
          @keyframes run {
            0% {
              transform: translateX(120%);
            }
            50% {
              transform: translateX(0);
            }
            100% {
              transform: translateX(-100%);
            }
          }
        }
      }
    }
    // 导航区
    nav {
      height: 61.3333vw;
      background-color: #fff;
      ul {
        display: flex;
        flex-wrap: wrap;
        height: 100%;
        li {
          width: 20%;
          height: 50%;
          a {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 3.7333vw;
            color: #000;
            img {
              width: 11.7333vw;
              height: 11.7333vw;
            }
            p {
              margin-top: 2vw;
            }
          }
        }
      }
    }
    // 大图片
    .bigimg {
      height: 31.4667vw;

      img {
        width: 100%;
        height: 100%;
      }
    }
    // 猜你喜欢
    .suki {
      height: 7.4667vw;
      background-color: #fff;
      border-bottom: #999 solid 1px;
      padding-top: 1.3333vw;
      padding-bottom: 1.3333vw;
      text-align: center;
      line-height: 6.4667vw;
    }
    // 商品区域
    .goods {
      min-height: 133.3333vw;
      a {
        display: block;
        margin-bottom: 1.6vw;
        .good {
          background-color: #fff;
          display: flex;
          padding: 2.6667vw;
          height: 37.3333vw;

          &:last-child {
            margin-bottom: 0;
          }
          .left {
            width: 32vw;
            margin-right: 5.3333vw;

            img {
              width: 100%;
              height: 100%;
            }
          }
          .right {
            flex: 1;

            span {
              color: #999;
              font-size: 3.2vw;
            }
            .top {
              height: 13.3333vw;
              p {
                min-height: 9.0667vw;
                line-height: 1.3;
                white-space: normal;
                color: #484848;
                font-size: 3.4667vw;
                display: -webkit-box;
                word-break: break-all;
                text-overflow: ellipsis;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                margin-bottom: 1.6vw;
              }
            }
            .bottom {
              margin-top: 2.6667vw;
              i {
                color: #f03c3c;
                font-size: 4vw;
              }
              span {
                text-decoration: line-through;
              }
            }
          }
        }
      }
    }
  }
  // 底部区域
  footer {
    width: 100%;
    position: fixed;
    background-color: rgb(255, 255, 255);
    left: 0;
    bottom: 0;
    z-index: 999;
    height: 13.3333vw;
    display: flex;
    align-items: center;
    text-align: center;
    border-top: black solid 1px;

    a {
      width: 25%;
      color: black;
      font-size: 3.2vw;
      .iconfont {
        font-size: 5.3333vw;
      }
      p {
        margin-top: 1.5vw;
      }
      &.active {
        color: red;
      }
    }
  }
}
